#
# Be sure to run `pod lib lint LBFoundation.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'LBFoundation'
  s.version          = '0.1.12'
  s.summary          = 'A short description of LBFoundation.'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
TODO: Add long description of the pod here.
                       DESC

  s.homepage         = 'https://github.com/408939786@qq.com/LBFoundation'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { '408939786@qq.com' => 'shwu1@i9i8.com' }
  s.source           = { :git => 'https://gitee.com/azazie_specs/foundation.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
  
  s.platforms        = { :ios => "8.0" }

  s.default_subspec = 'Core'

  s.subspec 'Core' do |ss|

     ss.dependency 'LBFoundation/YYModel'
     ss.dependency 'LBFoundation/Utility'
     ss.dependency 'LBFoundation/Addition'
     ss.dependency 'LBFoundation/Logger'

     ss.source_files  = 'LBFoundation/Classes/Core/*.{h,m}'
     ss.public_header_files = 'LBFoundation/Classes/Core/*.h'

  end

  s.subspec 'Logger' do |ss|
     ss.source_files  = 'LBFoundation/Classes/Logger/*.{h,m}'
     ss.public_header_files = 'LBFoundation/Classes/Logger/*.h'
     ss.dependency 'CocoaLumberjack', '>=3.2.0'
  end

  s.subspec 'Addition' do |ss|
      ss.source_files  = 'LBFoundation/Classes/Addition/*.{h,m}'
      ss.public_header_files = 'LBFoundation/Classes/Addition/*.h'
  end

  s.subspec 'SafeAddition' do |ss|
      ss.source_files  = 'LBFoundation/Classes/Addition/Safe/*.{h,m}'
      ss.public_header_files = 'LBFoundation/Classes/Addition/Safe/*.h'
  end

  s.subspec 'YYModel' do |ss|
    
    ss.source_files  = 'LBFoundation/Classes/LBModel/*.{h,m}'
    ss.public_header_files = 'LBFoundation/Classes/LBModel/*.h'
    ss.dependency 'YYModel'

  end

  s.subspec 'Utility' do |ss|
    ss.dependency 'LBFoundation/YYModel'
    ss.source_files  = 'LBFoundation/Classes/Utility/*.{h,m}'
    ss.public_header_files = 'LBFoundation/Classes/Utility/*.h'    
  end

  s.subspec 'Service' do |ss|
     ss.source_files  = 'LBFoundation/Classes/Service/*.{h,m}'
     ss.public_header_files = 'LBFoundation/Classes/Service/*.h'
  end

  s.subspec 'Timer' do |ss|
     ss.source_files  = 'LBFoundation/Classes/Timer/*.{h,m}'
     ss.public_header_files = 'LBFoundation/Classes/Timer/*.h'
  end

  # s.resource_bundles = {
  #   'LBFoundation' => ['LBFoundation/Assets/*.png']
  # }

  # s.public_header_files = 'Pod/Classes/**/*.h'
  # s.frameworks = 'UIKit', 'MapKit'
  # s.dependency 'AFNetworking', '~> 2.3'
end
